Method for image coding by rate-distortion adaptive zerotree-based residual vector quantization and system for effecting same

ABSTRACT

Methods and systems for encoding, transmitting and decoding digital images by rate-distortion adaptive zerotree-based residual vector quantization are disclosed. A method of the invention includes receiving a digital image, transforming the digital image into the wavelet domain generating a pyramid hierarchy, losslessly encoding a top LL subband from the pyramid hierarchy, encoding other subbands by vector quantization based on a zerotree insignificance prediction, generating an encoded image from the lossless encoding and vector quantization encoding, transmitting the encoded image along a communications channel, receiving the encoded image transmitted along the communications channel, reconstructing a zerotree from the encoded image, vector quantization decoding subbands from the encoded image other than a top LL subband, losslessly decoding the top LL subband from the encoded image, reverse wavelet transforming the top LL subband and the vector quantization decoded subbands and outputting a decoded image.

CROSS-REFERENCE TO RELATED APPLICATION

[0001] This patent application claims benefit of priority pursuant to 35 U.S.C. §119(e), from provisional patent application serial No. 60/172,708, filed Dec. 17, 1999.

TECHNICAL FIELD

[0002] This invention relates to the field of image compression. More particularly, this invention relates to methods and systems for efficiently compressing still images and video frames using wavelet transformation and vector quantization.

BACKGROUND ART

[0003] Image compression may be classified into two categories of encoding: lossless and lossy. Lossless encoding techniques guarantee that the decompressed image from the compressed (encoded) data is identical to the original image. Lossy encoding is generally capable of achieving higher compression ratios versus lossless encoding, but at the expense of some loss of image fidelity. Exemplary conventional lossless image encoding techniques include run-length encoding, Huffman encoding, and Lempel/Ziv encoding. Exemplary conventional lossy image encoding techniques include transform encoding, vector quantization (VQ), segmentation and approximation methods, spline approximation methods and fractal encoding.

[0004] Image compression is particularly useful for transmitting and displaying graphical images over the Internet, where it takes more time to transmit the original image than a compressed image. Image compression is also useful for compressing digital video frames. The compression of digital video image frames is particular useful for such applications as video conferencing and video streaming.

[0005] The basic idea behind transform coding is decorrelating the original signal so that the signal energy may be redistributed among only a small set of transform coefficients. In this way, may coefficients may be discarded after quantization and before encoding. Generally, transform coding involves four steps: (1) image subdivision, which divides an image into smaller blocks, (2) transformation, such as a Discrete Cosine Transform (DCT) and a wavelet transform, (3) quantization, such as zonal coding and thresholding, and (4) encoding, such as Huffman encoding.

[0006] With regard to the quantization, vector quantization is an alternative to scalar quantization and may lead to better performance according to P. I. R. A. International, “Open information interchange study on image/graphics standards,” Tech. Rep. Appendix, PIRA International, June 1993. A vector quantizer is a system which maps a K-dimensional Euclidean space R^(k) to a finite subset X in R^(k) made up of N vectors. This subset X becomes the vector codebook. An image can then be represented by the index of the codebook, and thus, be compressed.

[0007] Wavelet transforms have been applied to image compression. See e.g., M. Anotonini et al., “Image coding using wavelet transform”, IEEE Transactions on Image Processing, vol. 1, no. 2, pp. 205-220; J. M. Shapiro, “Embedded image coding using zerotree of wavelet coefficients,” IEEE Transactions on Signal Processing, vol. 41, pp. 3445-3462, December 1993; D. Sampson et al., “Wavelet transform image coding using lattice vector quantization”, Electronics Letters, vol. 30, pp. 1477-78, September 1994; and P. C. Cossman et al., “Tree-structured vector quantization with significance map for wavelet image coding”, Proc. 1995 IEEE Data Compression Conf (DCC), March 1995.

[0008] Wavelets are mathematic functions that provide joint time-frequency representation of a signal. Wavelets decompose data into different frequency components (known as subbands) and each component can be treated with a resolution matched to its scale. Wavelet transforms with the feature of joint locality can generate “sparse” coefficients, which are particularly useful for image compression. Additionally, the pyramid hierarchy of wavelet decomposition also enables many compression algorithms based on inter-band and cross-band relationships, such as zerotrees. See e.g., Shapiro supra. Although the wavelet transform reduces the correlation between image samples, high-order statistical dependencies still exist within or across subband coefficients. A vector quantizer may exploit these high-order statistical dependencies by jointly quantizing several coefficients. See e.g., A. N. Akansu et al., Subband and Wavelet Transforms: Design and Applications, Kluwer Academic Publishers, Norwell, Mass., 1996.

[0009] A wavelet is a mathematical function that satisfies certain mathematical requirements and is used in representing data (signal) or other functions. A wavelet provides an efficient and informative description of a signal, and is superior to the traditional Fourier transform in many fields, especially for fast transient and non-stationary signals. The wavelet has many useful properties, such as joint time (spatial)-frequency localization and multi-resolution representation.

[0010] Basis functions for the Fourier transform are sinusoids. In contrast, with the wavelet transform, various basis functions may be designed based on the features of a specific application. Most wavelets do not have analytical solutions. The wavelet transform may be implemented by iterating the quadrature mirror filters in a tree algorithm, as known to one of ordinary skill in the art. However, the wavelet tree algorithm as disclosed in Y. Sheng, The Transforms and Applications Handbook, Chapter “Wavelet Transform”, CRC Press, in cooperation with IEEE, 1996, permits fast wavelet transform, and only requires fewer operations that the conventional fast Fourier transform (FFT).

[0011] In most cases images are stored and transmitted by integer or binary format. For hardware implementation of image processing, pure integer operation is often preferred. However, most filters, such as wavelets and wavelet packets, have floating point coefficients. Thus, it is desirable to use an efficient integer implementation of wavelet transform for image coding.

[0012] The lifting scheme as disclosed in I. Debauchies et al., “Factoring wavelet transform into lifting steps”, Tech. Rep. Lucent, Bell Laboratories, 1996, the disclosure of which is incorporated herein by reference in its entirety for all purposes, supports perfect reconstruction and fast computation. In the lifting scheme, the wavelet transform is performed in the spatial domain. The basic idea behind the lifting scheme is a predict-update procedure, where the prediction error is related to the high-pass band and the updated prediction is related to the low-pass band.

[0013] With the proliferation of digital imagery in many applications including the Internet, there is a need in the art for methods and systems that perform image compression and decompression (coding and decoding) using a combination of lossless and lossy image encoding and decoding to obtain a high peak signal-to-noise ratio (PSNR) and high rates of speed.

DISCLOSURE OF INVENTION

[0014] The present invention includes methods for image encoding by rate-distortion adaptive zerotree-based residual vector quantization and systems for effecting same.

[0015] A method embodiment for encoding a digital image by rate-distortion adaptive zerotree-based residual vector quantization in accordance with the present invention includes: obtaining a digital image, transforming the digital image into wavelet domain, thereby generating a pyramid hierarchy, losslessly encoding a top low-low (LL) subband of the pyramid hierarchy, thereby obtaining a losslessly encoded portion of the digital image, vector quantization (VQ) encoding all other subbands of the pyramid hierarchy based on a zerotree insignificance prediction thereby obtaining a lossy encoded portion of the digital image, and outputting an encoded image from the losslessly encoded portion and the lossy encoded portion of the digital image.

[0016] A method embodiment for decoding an image encoded by rate-distortion adaptive zerotree-based residual vector quantization in accordance with the present invention includes: obtaining an encoded image, reconstructing a zerotree from the encoded image, vector quantization decoding subbands in the encoded image other than a top LL subband, losslessly decoding the top LL subband, reverse wavelet transforming the top LL subband and the vector quantization decoded subbands; and outputting a decoded image from the decoded top LL subband and the decoded subbands other than the decoded top LL subband.

[0017] An integrated circuit embodiments for implementing a method for encoding and decoding, respectively, a digital image by rate-distortion adaptive zerotree-based residual vector quantization in accordance with the present invention are disclosed.

[0018] An integrated circuit embodiment for coding and decoding an image by rate-distortion adaptive zerotree-based residual vector quantization in accordance with the present invention is disclosed.

[0019] A circuit card embodiment for implementing a method for encoding and decoding an image using rate-distortion adaptive zerotree-based residual vector quantization in accordance with the present invention is disclosed.

[0020] A system embodiment for encoding, transmitting and decoding an image using rate-distortion adaptive zerotree-based residual vector quantization in accordance with the present invention is disclosed.

[0021] These embodiments and methods of the present invention will be readily understood by reading the following detailed description in conjunction with the accompanying figures of the drawings.

BRIEF DESCRIPTION OF DRAWINGS

[0022] In the drawings, which illustrate what is currently regarded as the best mode for carrying out the invention and in which like reference numerals refer to like parts in different views or embodiments:

[0023]FIG. 1 is a flow chart of a method of encoding a digital image in accordance with the present invention.

[0024]FIG. 2 is a block diagram of a DPCM encoder and a DPCM decoder in accordance with the method of the present invention.

[0025]FIG. 3 is an illustration of a predictor based on a three-point operation in accordance with the method of the present invention.

[0026]FIG. 4 is a block diagram of Universal source coder in accordance with the method of the present invention.

[0027]FIG. 5 is a diagram illustrating imagetree and threshtree in a pyramid hierarchy in accordance with the method of the present invention.

[0028]FIG. 6 is a tree diagram illustrating the structure of imagetree and threshtree according to the present invention.

[0029]FIG. 7 is a method for constructing a significance map of a threshtree in accordance with the present invention.

[0030]FIG. 8 is a block diagram of the method of encoding and decoding images in accordance with the invention.

[0031]FIG. 9 are block diagrams of integrated circuits implementing the method of encoding and decoding of still images in accordance with the method of FIG. 8.

[0032]FIG. 10 is a block diagram of a circuit card embodiment of the invention including the method disclosed in FIG. 8.

[0033]FIG. 11 is a block diagram of a system embodiment of the invention including the method disclosed in FIG. 8.

BEST MODES FOR CARRYING OUT THE INVENTION

[0034] The invention is a method for image coding by rate-distortion adaptive zerotree-based residual vector quantization and system for effecting same. While the method of the invention has many applications, the method of the invention is particularly useful for compressing images for transmission through a communication channel and then reconstructing the images at a remote location. The method of the invention uses a discrete integer wavelet transform using the lifting scheme. The terms “discrete integer wavelet transform”, “discrete wavelet transform” and “DWT” are used interchangeably herein.

[0035] The wavelet bases of the method were selected based on the following considerations. First, perfect reconstruction is desirable for image coding, transmission and decoding. Second, since most images are smooth, it is desirable to use those mother wavelets with reasonably high vanishing moments. Additionally, the length of the finite impulse response (FIR) filters should be short so to enable fast computation and edge treatment. Note that for octave decomposition, the size of coarser subband becomes quite small when the decomposition level increases. Furthermore, it is desirable to have FIR filters that are linear phase, since that allows a cascaded pyramid structure without phase compensation. Qun Gu, Image Coding by Rate-Distortion Adaptive Zerotree-based Residual Vector Quantization (2000) (published Master of Science (M.S.) thesis, Utah State University, Logan, Utah, on file with the Utah State University Library), details methods of encoding and decoding images in accordance with the present invention, the entire contents of which are incorporated herein by reference for all purposes.

[0036]FIG. 1 is a flow chart of a method 100 of encoding a digital image in accordance with the present invention. Method 100 may include obtaining 102 a digital image, transforming 104 the digital image into wavelet domain, thereby generating a pyramid hierarchy, losslessly encoding 106 a top low-low (LL) subband of the pyramid hierarchy, thereby obtaining a losslessly encoded portion of the digital image, vector quantization (VQ) encoding 108 all other subbands of the pyramid hierarch based on a zerotree insignificance prediction, thereby obtaining a lossy encoded portion of the digital image, and outputting 110 an encoded image from the losslessly encoded portion of the image and the and the lossy encoded portion of the digital image.

[0037] Transforming 104 the digital image into wavelet domain may be accomplished using a 2-dimensional (2-D) separable octave decomposition which generates the pyramid hierarchy. Losslessly encoding 106 a top LL subband of the pyramid hierarchy may be accomplished using, for example and not by way of limitation, a differential pulse coded modulator (DPCM) in combination with Huffman coding, DPCM in combination with Universal source coding, DPCM in combination with arithmetic coding, and other suitable lossless encoding techniques known to one of ordinary skill in the art.

[0038] Wavelet transforms suitable for performing the discrete integer wavelet transform 104 according to the method of the invention may include, for example and not by way of limitation, the Daubechies' 9-7 symmetric wavelet transform, the Two Six (TS) transform, and the Two Ten (TT) wavelet transform.

[0039] The Daubechies' 9-7 symmetric biorthogonal wavelet transform is the presently preferred wavelet because it provides a good trade-off among the above considerations. The symmetric property of the Daubechies' 9-7 wavelet allows simple edge treatment. The analysis low-pass (LP) filter of the Daubechies' 9-7 wavelet of the present invention has nine taps and the analysis high-pass (HP) filter of the Daubechies' 9-7 wavelet of the present invention has seven taps. Both analysis and synthesis high-pass filters have four vanishing moments. This implies that the transform coefficients will be zero (or close to zero) for any signal that can be described by (or approximated by) a polynomial of 4th order or less. The filter coefficients of the Daubechies' 9-7 filter pair are shown in Table 1 below. TABLE 1 n 0 ±1 ±2 ±3 ±4 2^((−1/2))h_(n) 0.602949 0.266864 −0.078223 −0.016864 0.026749 2^((−1/2)){tilde over (h)}_(n) 0.557543 0.295636 −0.028772 −0.045636 0

[0040] As noted above, the Daubechies' 9-7 symmetric wavelet transform of the present invention is implemented by the lifting scheme. The wavelet coefficients derived from the lifting scheme for the Daubechies' 9-7 symmetric wavelet transform are given by equations (1)-(4):

d _(1,l) ⁽¹⁾ =s _(0,21+1)+└α(S _(0,sl) +s _(0,21+2))+1/2┘  (1)

s _(1,l) ⁽¹⁾ =s _(0,21)+└β(d _(1,l) ⁽¹⁾ +d _(1,l−1) ⁽¹⁾)+1/2┘  (2)

d _(1,l) =d _(1,l) ⁽¹⁾+└γ(s _(1,l) ⁽¹⁾ +s _(1,l+1) ⁽¹⁾)+1/2┘  (3)

s _(1,l) =s _(1,l) ⁽¹⁾+└δ(d _(1,l) +d _(1,l−1))+1/2  (4)

[0041] where “d” represent HP coefficients and “s” represent LP coefficients and where “└ ┘” denotes truncation for integer operations. The constants derived from the Daubechies' 9-7 symmetric wavelet transform filter pair (see Table 2) and the lifting scheme may be given by the following approximations:

α≈−1.586134342

β≈−0.05298011854

γ≈0.8829110762

δ≈0.4435068522

K≈1.149604398  (5)

[0042] The TS transform of the present invention is an integer wavelet transform derived from the (3, 1) biorthogonal wavelet transform of Cohen-Daubechies-Feauveau as disclosed in A. Cohen et al., “Biorthogonal bases of compactly supported wavelets”, Comm. Pure Appl. Math., vol. 45, pp.485-560, 1992, the disclosure of which is expressly incorporated herein by reference in its entirety for all purposes. Here, the notation (3, 1) refers to the vanishing moments of the analysis and synthesis HP filter separately. The TS transform of the present invention has a two tap LP analysis filter, and a six tap HP analysis filter.

[0043] Implementation of the TS transform by the lifting scheme according to the method of the present invention includes calculating the following wavelet coefficients:

d _(1,l) ⁽¹⁾ =s _(0,21+1) −s _(0,21)  (6)

[0044] $\begin{matrix} {s_{1,I} = {s_{0,{2l}} + \left\lfloor \frac{d_{1,I}^{(1)}}{2} \right\rfloor}} & (7) \\ {d_{1,I} = {d_{1,l}^{(1)} + \left\lfloor {\frac{s_{1,{l - 1}}}{4} - \frac{s_{1,{l - 1}}}{4} + \frac{1}{2}} \right\rfloor}} & (8) \end{matrix}$

[0045] It is known that even though the TS transform has three vanishing moments, it generally performs worse than those filters with comparable number of analysis vanishing moments. See for example, A. R. Calderbank et al., “Wavelet transforms that map integers to integers”, Mathematics Subject Classification, August 1996. For this reason the Daubechies' 9-7 transform is preferred over the TS transform.

[0046] The TT transform of the present invention is derived from the Compression with Reversible Embedded Wavelets (CREW) system disclosed in M. J. Gormish et al., “Lossless and nearly lossless compression for high quality images”, Tech. Rep., Ricoh California Research Center, 2882 Sand Hill Road, Suite 115, Menlo Park, Calif. 94025-7022, the contents of which are expressly incorporated herein by reference in its entirety for all purposes. The TT transform of the present invention has two taps in the LP analysis filter and ten taps in the HP analysis filter. The filter pair of the TT transform of the present invention is derived from the LeGall-Tabatabai polynomial of case “p=3”, which is of degree 10 in z⁻¹. The TT transform of the present invention is defined by: $\begin{matrix} {{s(n)} = \left\lfloor \frac{{x\left( {2n} \right)} + {x\left( {{2n} + 1} \right)}}{2} \right\rfloor} & (9) \\ {{d(n)} = {{x\left( {2n} \right)} - {x\left( {{2n} + 1} \right)} + {p(n)}}} & (10) \end{matrix}$

[0047] where p(n) is defined by: $\begin{matrix} {{p(n)} = \left\lfloor \frac{{3{s\left( {n - 2} \right)}} - {22{s\left( {n - 1} \right)}} + {22{s\left( {n + 1} \right)}} - {3{s({n2})}} + 32}{2} \right\rfloor} & (11) \end{matrix}$

[0048] The TT transform is considered one of the most efficient wavelet decompositions. The special properties of the TT transform include: (1) the LP (smooth) coefficient has no growth in bit depth, i.e., if the input signal can be represented by b bits, the output LP coefficient can be represented by b bits, and (2) the HP (detailed) output coefficients require two additional bits for perfect reconstruction. Thus, the TT transform of the present invention is exactly reversible.

[0049] Because biorthogonal wavelet transformations in most cases cannot preserve energy according to Parseval's relation, it is necessary to employ a weighting scheme in order to use rate-distortion optimization techniques based on orthogonal transforms. When Parseval's relation holds, the distortion in the wavelet domain can be directly related to the distortion in the image domain. It is known that the biorthogonal wavelet transform with a scalar weighting scheme may result in minimum reconstruction error when using rate-distortion optimization techniques based on orthogonal transforms.

[0050] Let h(n) and g(n) denote the synthesis filter pair of a biorthogonal wavelet transform, and w_(l) and w_(h) as the weights for the LP and HP transform coefficients respectively. When the wavelet transform is implemented by the lifting scheme, the weights can be derived as: $\begin{matrix} {w_{L} = \frac{\sqrt{2}{\sum_{L}{h(n)}^{2}}}{\left| {\sum_{L}{\left( {- 1} \right)^{n}{h(n)}}} \right|^{2}}} & (12) \\ {w_{h} = \frac{\sqrt{2}{\sum_{L}{g(n)}^{2}}}{\left| {\sum_{L}{\left( {- 1} \right)^{n}{h(n)}}} \right|^{2}}} & (13) \end{matrix}$

[0051] where L is the length of the filter. The weights of a two-dimensional (2-D) multilevel wavelet transform can be obtained by straight forward extension of equations (12) and (13).

[0052] Generally, most of the energy of images remains in the a low-frequency band. After wavelet decomposition, the top LL subband contains mostly the low-frequency coefficients and corresponds to the whole image with fewest coefficients compared with all other subbands. Therefore, the top LL subband contributes most to the quality of the reconstructed image. For this reason, the top LL subband is coded losslessly (see 106, FIG. 1) in the method 100 of encoding a digital image according to the present invention. Since the statistical distribution of the top LL subband is similar to the original image, it is reasonable to use a differential pulse coded modulator (DPCM) technique to encode it. The prediction error by DPCM is then less correlated and may be coded by some entropy coding methods. In the method 100 of encoding a digital image according to the present invention, lossless coding methods may include, for example and not by way of limitation, DPCM plus Huffman coding, DPCM in combination with Universal source coding or Rice coding, DPCM and arithmetic coding and any other suitable lossless coding method known to one of ordinary skill in the art.

[0053] DPCM is a well known technique for compression of highly correlated source signals, e.g., speech and images. In channel coding, the differential nature of DPCM makes it sensitive to bit error. In source coding, DPCM generally can compress images to three or four bits per pixel with minimal distortion. A conventional form of a DPCM encoder 200 and DPCM decoder 250 are shown in FIG. 2.

[0054] In traditional terms, it has been said that DPCM is used to remove the “redundancy” of the source signal. Strictly speaking, DPCM is used to remove the statistical correlation between samples of the source signal. In the 2-D case, such as image processing, the predictor 220 may be a 2-D linear causal predictor which may be expressed as: $\begin{matrix} {{\overset{\sim}{u}\left( {m,n} \right)} = {\sum\limits_{k,{l\quad \varepsilon}}{\sum\limits_{W}{{a\left( {k,l} \right)}{\overset{\sim}{u}\left( {{m - k},{n - l}} \right)}}}}} & (14) \end{matrix}$

[0055] where W is a causal prediction window. In the method 100 according to the present invention, the predictor 220 may be based on a three-point operation:

ũ(m, n)=ũ(m, n−1)+ũ(m−1, n)+ũ(m−1, n−1)  (15)

[0056] and illustrated in FIG. 3.

[0057] The prediction error generated by a DPCM scheme is then coded by a Huffman coding technique. See for example, A. K. Jain, Fundamentals of Digital Image Processing, Prentice Hall, Englewood Cliffs, N.J. 07632, 1989, the disclosure of which is incorporated herein by reference in its entirety for all purposes. Huffman coding is among the best known and widely used entropy coding techniques. Huffman coding is a variable length coding based on the probability distribution of the source symbols. The basic idea of Huffman coding is to assign shorter codewords to frequently occurring, more probable symbols, and assign longer codewords to infrequently occurring, less-probable symbols. Huffman coding can achieve the optimal performance, or the compressed bit-rate that is equal to the entropy of the source symbols, only when the probabilities of the source symbols happen to be negative powers of 2. However, this case is rare in practice.

[0058] Huffman coding is known to be often quite effective for a predictive coding method. However, because Huffman coding is non-adaptive and based on the statistical distribution of a set of images, it is difficult to build a Huffman table which can give best performance for each individual image. For this reason, an adaptive coding method, such as Universal source coding may also be used to losslessly encode 106 the top LL subband of the pyramid hierarchy.

[0059] The basic idea behind Universal source coding is to first execute multiple lossless coders in parallel and then select the one that can produce the fewest bits for a given period of time, then send a small amount of overhead to inform the decoder which coder was selected. A particular Universal source coding method which may be used to losslessly encode 106 a top LL subband of the pyramid hierarchy in accordance with the present invention is disclosed in R. F. Rice, “Some Practical Universal Noiseless Coding Techniques, part iii, module psi 14, k+”, Tech. Rep., Jet Propulsion Laboratory, 1991, the disclosure of which is incorporated herein by reference in its entirety for all purposes and referred to herein as “Rice coding” .

[0060] A block diagram of Universal source coder 400 is shown in FIG. 4. The data is input in blocks rather than by symbol and the output is likewise in block form. For the case of image data, the block can be a 2-D vector of the image to be coded. The reversible preprocessor 410, may be a DPCM coder with a 2-D predictor similar to that used in DPCM plus Huffman coding described above. The standard source which is output from the reversible preprocessor 410 is defined as a set of nonnegative integer samples, whose probability is inversely related to its value. That is, for a sequence of J samples, the standard source is:

{tilde over (δ)}^(n)=δ₁δ₂ . . . δ_(j)  (16)

[0061] where the J samples of the standard source are of values from a set of nonnegative integers, 0, 1, 2, . . . , q−1, and the samples of the standard source have the probability distribution:

P _(δ) ={p ₀ , p ₁ , . . . , p _(q−1)}  (17)

[0062] If the samples of the standard source are independent of themselves and any side information, and the order of their probability distribution satisfies:

p ₀ ≧p ₁ ≧ . . . ≧p _(q−1)  (18)

[0063] then the standard source is known as an idealized standard source. Thus, an idealized standard source is a set of symbols sorted in the order of their probability distribution, and is ready to build a Huffman table.

[0064] The prediction error generated by the reversible preprocessor 410 tends to be unimodal distributed, and thus, can well approximate a standard source. The prediction error is mapped into nonnegative values by:

θ({tilde over (x)} _(j))=min({tilde over (x)} _(j),2^(n)−1−{tilde over (x)} _(j))  (19)

[0065] For n-bit data which produces n+1 bit prediction errors, this mapping can constrain them to still only n bits. This approximate standard source is input to the adaptive variable length coder 420, e.g., a Huffman coder. The adaptive variable length coder 420 includes a set of subcoders (not shown). Each subcoder gives best performance at a certain disjoint entropy range. The bits of an N-bit input sample are first spilt into two parts: N−k most significant bits and k least significant bits. The sequence of k least significant bits is randomly distributed and does not require entropy coding. The N−k most significant bits are coded by a fixed Huffman coder. All the subcoders run in parallel. The best result is selected, and the index of this subcoder is sent as side information to inform the decoder.

[0066] Several parameters are required to configure a Universal source coder for losslessly encoding 106 a top LL subband of the pyramid hierarchy: (1) number of bits per sample—the number of bits per sample actually depends on the dynamic range of the input data, (2) number of subcoders—generally, incrementing the index of a subcoder will shift its dynamic range (entropy range) by 1 bit per sample, thus, it will be reasonable to set N subcoders for an N-bit input sequence, and (3) block size, J—it is recommended that the block size, J, be chosen in the range 1≦J≦16, and most applications work well with a fixed J=16.

[0067] An important aspect of the method 100 of the present invention is the zerotree quantizer on the discrete wavelet transform (DWT) coefficients performed in the VQ encoding 108 of subbands other than the LL subband, hereinafter referred to as the wavelet rate-distortion adaptive residual vector quantizer (WRDADRVQ). The zerotree prediction is implicitly applied in the rate-distortion optimization. No hard thresholding is required according to the method 100 of the present invention.

[0068] In the octave pyramid decomposition, the HL, HH, LH subbands correspond to the horizontal, diagonal, and vertical directions, respectively. Each decomposition level is related to a different resolution scale. Thus, it is reasonable to use different vector shapes and sizes for different decomposition levels and subbands. However, irregular vector sizes and shapes may complicate the zerotree hierarchy and may reduce the capability of the insignificance prediction. In order to preserve the zerotree prediction, and for simplicity, uniform square vectors for all subbands are used in the method 100 of the present invention. For the WRDADRVQ, each vector in the top LL subband has three direct children vectors, and each of these three direct children vectors has four children vectors, and each of these four children vectors has four children vectors at the next level, recursively.

[0069] The parent-descendent relationship constructs a tree structure, which consists of a root vector at the top LL subband, and the root vector has three branches in the three directions (horizontal, diagonal and vertical), and each branch itself is a tree that exponentially grows by a power of four. This tree structure starting from the top LL root vector or subband is referred to herein as an “imagetree”. The tree structure of each branch is referred to herein as a “threshtree”. Thus, each imagetree has three threshtrees in the three directions. FIG. 5 illustrates an imagetree and its threshtrees in a pyramid hierarchy. Note that the root of an imagetree, located in the top LL subband, is losslessly coded in accordance with the method of the present invention. However, for both encoding and decoding, the top L subband is scanned vector by vector in the order of row by row. Since each vector in the top L subband is an imagetree root and identifies an imagetree, when any vector in the top LL subband is scanned, all of its three threshtrees will be coded by VQ with a rate-distortion optimization within the threshtree. In this way, after scanning the top LL subband, all the vectors in the image except for the top LL subband will be coded by VQ (see 108 of FIG. 1).

[0070] When a vector is coded by an adaptive rate-distortion optimal VQ, the resulting number of VQ stages and the indices of each coding unit will be converted into bit-stream and sent to the communication channel or saved into a data file. The bit format of a coded vector according to the present invention is shown in Table 2. TABLE 2 VQ Header [VQ index 0] [VQ index 1] . . . [VQ index n]

[0071] The first (leftmost) portion of the bit format is the VQ header, which is the actual VQ stage number coded by the Huffman table, then followed by the indices of each VQ coding unit, if any. The VQ indices are directly packed into bit-stream without further coding. In the method according to the present invention, the number of vectors per coding unit is constant. So, the bit length of the VQ index of each coding unit is also constant.

[0072] The goal of rate-distortion optimization within a vector for an N-coding unit adaptive rate-distortion optimal VQ is to find the optimal number of the VQ coding unit, n, which gives the minimal cost J:

J=m_(N)in (D(n)+λR (n))

[0073] where D(n) is the distortion of n-coding unit VQ and $\begin{matrix} {{R(n)} = {{H(n)} + {\sum\limits_{i = 1}^{n}{B(i)}}}} & (21) \end{matrix}$

[0074] is the bit length of coded VQ. H( ) is the length of the entropy code used to code the VQ header, and B(i) is the bits per coding unit for VQ index and is a constant in accordance with the present invention. The value of the VQ header, h, may be the number of the coding units for the adaptive rate-distortion optimal VQ. Since the number of maximum VQ coding units, N, is usually small, this optimization may be implemented by a simple linear search as known to one of ordinary skill in the art.

[0075] The following notation is used herein to denote the significance map symbols in the method of the present invention: SG—significant, RT—zerotree root, IZ—isolated zero, and CH—zerotree child. Only those significant vectors are actually coded by VQ. For RT and IZ, only the significance map symbols are sent. Zerotree children do not need to be coded because they can be predicted by their zerotree root. The significance map symbols are embedded in the VQ header. Hence, the value, h, of the VQ header may be defined as follows: $\begin{matrix} {h = \left\{ \begin{matrix} 0 & {if} & {IZ} \\ {\left. 1 \right.\sim N} & {if} & {SG} \\ {N + 1} & {if} & {RT} \end{matrix} \right.} & (22) \end{matrix}$

[0076] To illustrate the rate-distortion optimization along a threshtree, denote the function T(s), which is defined as: $\begin{matrix} {{T(s)} = \left\{ \begin{matrix} J & {{{for}\quad s} = {SG}} \\ {{D(0)} + {\lambda \quad {H\left( {N + 1} \right)}}} & {{{for}\quad s} = {RT}} \\ {{D(0)} + {\lambda \quad {H(0)}}} & {{{for}\quad s} = {IZ}} \\ {D(0)} & {{{for}\quad s} = {CH}} \end{matrix} \right.} & (23) \end{matrix}$

[0077] where D(0) is the distortion of the vector without VQ coding (or the “zero coding unit” ). If mean square error is chosen as the measure of distortion, then D(0) is the average energy (or power) of the vector. The value of the function T(s) is the actual cost of a vector subject to its significance. Let W_(l,p) be the total cost of the pth node at l DWT level and the costs of all its descendants, then W_(l,p) can be expressed recursively as: $\begin{matrix} {W_{l,p} = {{T\left( s_{({l,p})} \right)} + {\sum\limits_{q = {4p}}^{q < {{4p} + 4}}W_{{l - 1},q}}}} & (24) \end{matrix}$

[0078] where q is the index of the four siblings belonging to a same parent. Note that the DWT level is defined as in FIG. 6, which illustrates the structure of imagetree and threshtree according to the present invention. Also note that l DWT level consists of 4^(l) nodes, starting from Level 0, as 1, 4, 16, . . . For an L level DWT decomposition, the very bottom level satisfies:

W _(L−1,p) =T(s _((L−1,p)))  (25)

[0079] The minimal W_(0,0) may be found by varying the s_((l,p)), or in other words, by a proper zerotree classification. The significance map of the threshtree is constructed from the bottom (finest) level to the top (coarsest) level (Level 0 in FIG. 6).

[0080] Referring to FIG. 7, a method 700 for constructing a significance map of a threshtree in accordance with the present invention is shown. Method 700 includes searching 702 for the optimal VQ coding unit number, n, for all the vectors of the threshtree by minimizing the rate-distortion cost of each individual vector, recoding the minimal distortions, the optimal VQ coding unit, the resulting VQ indices, and letting l=L−1, assigning 704 the value zero top, computing 706 the minimum total cost of the pth zerotree node at l DWT level and the cost of all its descendants, incrementing 708 the value of p, if the inequality 710, p<4^(l), is true, then returning to 706, otherwise if the equality 712, l=0, is true then stopping, otherwise decrementing 714 the value of l and returning to 704.

[0081] Computing 706 the minimum total cost of the pth zerotree node at l DWT level and the cost of all its descendants, i.e., min_(s(l,p))(W_(1,p)), involves the following rules when comparing the three cases of s_((l,p)): SG, IZ, RT.

[0082] If s_((l,p))=SG, then

W _(l,p) =T(SG)+Σ_(q=4p) ^(q<4p+4) W _(l−1,q)  (26)

[0083] with the significance of all its descendants unchanged, i e., the second part of equation (24) unchanged. If s_((l,p))=IZ, then

W _(l,p) =T(IZ)+Σ_(q=4p) ^(q<4p+4) W _(l−1,q)  (27)

[0084] with the significance of all its descendants unchanged. If s_((l,p))=RT, then

W _(l,p) =T(RT)+Σ_(q=4p) ^(q<4p+4) W _(l−1,q)  (28)

[0085] by changing the significance of all its descendants as CH. Find the minimal cost among these three cases, i.e., equations (26)-(28). If equation (28) is minimal among all three, update W for all its descendants.

[0086] The WRDADRVQ scheme does not support embedded or successive coding. The rate control is accomplished by applying the proper λ value in equation (23). For example and not by way of limitation, after the wavelet transform 104, lossless encoding 106 and VQ search 702, all VQ indices and the distortions of each coding unit are bookmarked. The wavelet transform and VQ search, which contribute most of the computational complexity, are obtained only once in the method 700. Then the λ value corresponding to the targeted rate may be performed by general searching methods, such as bi-section, golden search or other suitable methods known to one of ordinary skill in the art. The rate output by method steps 704-714 may be used to compute a fitness function.

[0087] Decoding an image encoded according to the method 100 of the present invention includes decoding the top LL subband by the lossless decoder corresponding to the lossless encoder. Since the bit-stream of VQ coded data is in the order of imagetree by imagetree, the pyramid hierarchy may be reconstructed by putting back the coefficients of the imagetree to their corresponding positions. If any vectors are predicted as zerotree children, the decoder slips the lower levels of the threshtree and fills the corresponding vectors with zero. The decoding is completed by performing an inverse DWT on the reconstructed pyramid hierarchy and the reconstructed image is complete. The method of decoding according to the present invention may include obtaining the encoded image, reconstructing a zerotree from the encoded image, vector quantization decoding subbands in the encoded image other than a top LL subband, losslessly decoding the top LL subband, reverse wavelet transforming the top LL subband and the vector quantization decoded subbands, and outputting a decoded image from the decoded top LL subband and the decoded subbands other than the decoded top LL subband.

[0088] Referring to FIG. 8, a block diagram of a method 800 of encoding, transmitting and decoding images in accordance with the present invention is shown. The input image is transformed into the wavelet domain using a 2-dimensional, separable octave decomposition which generates a pyramid hierarchy. The top LL subband of the hierarchy is coded losslessly. Lossless encoding methods used to code the top LL subband may include, for example and not by way of limitation, DPCM plus Huffman encoding, DPCM plus Universal source encoding also known as Rice encoding and DPCM plus arithmetic coding. The other subbands are vector quantized based on a zerotree insignificance prediction. Only significant vectors are vector quantization (VQ) encoded. The symbols of the significance map are embedded in the VQ headers. Additionally, a rate-distortion trade-off is applied in the vector quantization step. Decoding according to the method 800 involves the reverse of the above-referenced procedures.

[0089] The method 800 of encoding and decoding still images by rate-distortion adaptive zerotree-based residual vector quantization of the present invention may be implemented in one or more integrated circuits. Referring to FIG. 9, a block diagram illustrating an image encoding circuit 920, an image decoding circuit 930 and an image coding/decoding (or “codec” ) circuit 900 are shown. The image encoding circuit 920 may be used to encode an original image using the method 800 of FIG. 8. An original image from any source (not shown) is input into the image encoding circuit 920. The source may be, for example and not by way of limitation, a digital camera, a scanner, a digital data storage medium, or other digital data source. The output of the image encoding circuit 920 is an image encoded according to the rate-distortion adaptive zerotree-based residual vector quantization method 800 of the present invention. The image encoding circuit 920 may be designed and implemented in an integrated circuit using techniques known to one of ordinary skill in the art.

[0090] The image decoding circuit 930 may be used to decode an image encoded by the rate-distortion adaptive zerotree-based residual vector quantization method 800 of the present invention. An encoded image is input into the image decoding circuit 930. The output of the image decoding circuit 930 is a decoded image. The image decoding circuit 930 may be designed and implemented in an integrated circuit to implement the decoding method using techniques known to one of ordinary skill in the art.

[0091] The method 800 of encoding and decoding still images by rate-distortion adaptive zerotree-based residual vector quantization 10, may be implemented in a circuit card 40 embodiment of the invention. Referring to FIG. 10, a block diagram of a circuit card 40 implementing the method of the invention is shown. Circuit card 40 may be configured to receive an original image (prior to image compression) and may output an encoded image. Circuit card 40 may be configured to receive an encoded image and output a decoded image. Circuit card 40 may be configured to receive either an original image or an encoded image and output, respectively, either an encoded image or a decoded image. Circuit card 40 includes I/O circuitry 42 for communicating with external circuitry, such as for example, a computer system (not shown). Circuit card 40 also includes image processing circuitry 44 for encoding and decoding digital images according to the method 800 of FIG. 8. Image processing circuitry 44 may comprise a single integrated circuit. Image processing circuitry 44 may comprise two integrated circuits such as an image encoding circuit 920 and an image decoding circuit 930 as depicted in FIG. 9. Image processing circuitry 44 may include more than two discrete integrated circuits. The image processing circuitry 44 and circuit card 40, may be designed to implement the rate-distortion adaptive zerotree-based residual vector quantization method 800 by incorporating all necessary circuitry into, for example and not by way of limitation, an application specific integrated circuit (ASIC) using techniques known to those of ordinary skill in the art.

[0092] The method of encoding and decoding still images by rate-distortion adaptive zerotree-based residual vector quantization 800 as shown in FIG. 8 may be implemented in a system for encoding, transmitting and decoding still images. FIG. 11 is a block diagram of a system 50 embodiment of the invention including the method 800 disclosed in FIG. 8. System 50 includes an input device 52, a processor device 54, an output device 56, a storage device 58 and a memory device 60. Input device 52 may be, for example and not by way of limitation, a digital camera, a scanner, a digital data storage medium, or other digital data source. Output device 56 may be, for example and not by way of limitation, a monitor, a printer. Input device 52 and output device 56 may be a network interface card for communicating with external computer systems. Processor device 54 may be a general purpose microprocessor or a digital signal processor. Memory device 60 may be any form of conventional computer memory (i.e., read only memory (ROM), dynamic read only memory (DRAM), etc.) for storing data and/or computer program instructions. Storage device 58 may be, for example and not by way of limitation, a fixed hard disk, a removable media disk, e.g., floppy disk, Zip® disk, Jaz® disk, compact disk (CD) read only memory (ROM), CD rewriteable (CD-RW), magneto-optic (MO) disk, etc., or conventional computer memory. System 50 may also be video system for encoding and decoding video frames in a video system.

[0093] Another system embodiment (not shown) in accordance with the present invention may further include two systems 50 interconnected through a communications channel for encoding an original image with the first of two systems 50, transmitting the encoded image with the first of two systems 50 over the communications channel to a selected destination, wherein the selected destination includes a second of two systems 50, decoding the encoded image with the second of two systems 50 to provide a decoded image at the selected destination.

[0094] Although this invention has been described with reference to particular embodiments, the invention is not limited to these described embodiments. Rather, it should be understood that the embodiments described herein are merely exemplary and that a person skilled in the art may make many variations and modifications without departing from the spirit and scope of the invention. All such variations and modifications are intended to be included within the scope of the invention as defined in the appended claims. 

What is claimed is:
 1. A method for encoding a digital image by rate-distortion adaptive zerotree-based residual vector quantization comprising: obtaining a digital image; transforming said digital image into wavelet domain, thereby generating a pyramid hierarchy; losslessly encoding a top low-low (LL) subband of said pyramid hierarchy, thereby obtaining a losslessly encoded portion of said digital image; vector quantization (VQ) encoding all other subbands of said pyramid hierarchy, based on a zerotree insignificance prediction, thereby obtaining a lossy encoded portion of said digital image; and outputting an encoded image from said losslessly encoded portion of said digital image and said lossy encoded portion of said digital image.
 2. The method of claim 1, wherein said transforming said digital image into wavelet domain comprises a 2-dimensional separable octave decomposition which generates said pyramid hierarchy.
 3. The method of claim 1, wherein said transforming comprises a Daubechies 9-7 symmetric wavelet transform.
 4. The method of claim 1, wherein said transforming comprises a Two Six (TS) wavelet transform.
 5. The method of claim 1, wherein said transforming comprises a Two Ten (TT) wavelet transform.
 6. The method of claim 1, wherein said losslessly encoding a top LL subband comprises differential pulse coded modulator and Huffman coding.
 7. The method of claim 1, wherein said losslessly encoding a top LL subband comprises differential pulse coded modulator and universal source coding.
 8. The method of claim 1, wherein said losslessly encoding a top LL subband comprises differential pulse coded modulator and arithmetic coding.
 9. The method of claim 1, wherein said VQ encoding comprises rate-distortion optimization along a threshtree.
 10. The method of claim 1, wherein said VQ encoding includes targeted rate control.
 11. A method for decoding an image encoded by rate-distortion adaptive zerotree-based residual vector quantization, comprising: obtaining said encoded image; reconstructing a zerotree from said encoded image; vector quantization decoding subbands in said encoded image other than a top LL subband; losslessly decoding said top LL subband; reverse wavelet transforming said top LL subband and said vector quantization decoded subbands; and outputting a decoded image from said decoded top LL subband and said decoded subbands other than said decoded top LL subband.
 12. A method for transmitting a digital image across a communications channel comprising: obtaining a digital image; transforming said digital image into wavelet domain, thereby generating a pyramid hierarchy; losslessly encoding a top low-low (LL) subband of said pyramid hierarchy, thereby obtaining a losslessly encoded portion of said digital image; vector quantization (VQ) encoding all other subbands of said pyramid hierarchy, based on a zerotree insignificance prediction, thereby obtaining a lossy encoded portion of said digital image; outputting an encoded image from said losslessly encoded portion of said digital image and said lossy encoded portion of said digital image; transmitting said encoded image along a communications channel; obtaining said encoded image transmitted along said communications channel; reconstructing a zerotree from said encoded image; vector quantization decoding subbands in said encoded image other than a top LL subband; losslessly decoding said top LL subband; reverse wavelet transforming said top LL subband and said vector quantization decoded subbands; and outputting a decoded image from said decoded top LL subband and said decoded subbands other than said decoded top LL subband.
 13. The method of claim 12, wherein said transforming comprises a wavelet transform selected from the group comprising a Daubechies 9-7 symmetric wavelet transform, a Two Six (TS) wavelet transform and a Two Ten (TT) wavelet transform.
 14. The method of claim 12, wherein said losslessly encoding a top LL subband comprises differential pulse coded modulator (DPCM) and Huffman coding.
 15. The method of claim 12, wherein said losslessly encoding a top LL subband comprises Universal source coding.
 16. An integrated circuit for implementing a method for encoding a digital image by rate-distortion adaptive zerotree-based residual vector quantization, said method comprising: obtaining a digital image; transforming said digital image into wavelet domain, thereby generating a pyramid hierarchy; losslessly encoding a top low-low (LL) subband of said pyramid hierarchy, thereby obtaining a losslessly encoded portion of said digital image; vector quantization (VQ) encoding all other subbands of said pyramid hierarchy, based on a zerotree insignificance prediction, thereby obtaining a lossy encoded portion of said digital image; and outputting an encoded image from said losslessly encoded portion of said digital image and said lossy encoded portion of said digital image.
 17. The integrated circuit of claim 16, wherein said transforming comprises a wavelet transform selected from the group comprising a Daubechies 9-7 symmetric wavelet transform, a Two Six (TS) wavelet transform and a Two Ten (TS) wavelet transform.
 18. An integrated circuit for implementing a method for decoding a digital image that has been encoded by rate-distortion adaptive zerotree-based residual vector quantization, said method comprising: obtaining said encoded image; reconstructing a zerotree from said encoded image; vector quantization decoding subbands in said encoded image other than a top LL subband; losslessly decoding said top LL subband; reverse wavelet transforming said top LL subband and said vector quantization decoded subbands; and outputting a decoded image from said decoded top LL subband and said decoded subbands other than said decoded top LL subband.
 19. An integrated circuit for coding and decoding an image by rate-distortion adaptive zerotree-based residual vector quantization.
 20. The integrated circuit of claim 19, wherein said coding comprises: transforming said digital image into wavelet domain, thereby generating a pyramid hierarchy; losslessly encoding a top low-low (LL) subband of said pyramid hierarchy, thereby obtaining a losslessly encoded portion of said digital image; vector quantization (VQ) encoding all other subbands of said pyramid hierarchy, based on a zerotree insignificance prediction, thereby obtaining a lossy encoded portion of said digital image; and outputting an encoded image from said losslessly encoded portion of said digital image and said lossy encoded portion of said digital image.
 21. The integrated circuit of claim 19, wherein said decoding comprises: reconstructing a zerotree from an encoded image; reconstructing a zerotree from said encoded image; vector quantization decoding subbands in said encoded image other than a top LL subband; losslessly decoding said top LL subband; reverse wavelet transforming said top LL subband and said vector quantization decoded subbands; and outputting a decoded image from said decoded top LL subband and said decoded subbands other than said decoded top LL subband.
 22. A circuit card for implementing a method for encoding and decoding an image using rate-distortion adaptive zerotree-based residual vector quantization.
 23. The circuit card of claim 22, wherein said circuit card comprises circuitry configured for: obtaining a digital image; transforming said digital image into wavelet domain, thereby generating a pyramid hierarchy; losslessly encoding a top low-low (LL) subband of said pyramid hierarchy, thereby obtaining a losslessly encoded portion of said digital image; vector quantization (VQ) encoding all other subbands of said pyramid hierarchy, based on a zerotree insignificance prediction, thereby obtaining a lossy encoded portion of said digital image; and outputting an encoded image from said losslessly encoded portion of said digital image and said lossy encoded portion of said digital image.
 24. The circuit card of claim 23, wherein said circuit card further comprises circuitry configured for: obtaining said encoded image; reconstructing a zerotree from said encoded image; vector quantization decoding subbands in said encoded image other than a top LL subband; losslessly decoding said top LL subband; reverse wavelet transforming said top LL subband and said vector quantization decoded subbands; and outputting a decoded image from said decoded top LL subband and said decoded subbands other than said decoded top LL subband.
 25. A system for transmitting an image over a communications channel, wherein said system implements a method for encoding, transmitting and decoding a digital image by rate-distortion adaptive zerotree-based residual vector quantization, said method comprising: obtaining a digital image; transforming said digital image into wavelet domain, thereby generating a pyramid hierarchy; losslessly encoding a top low-low (LL) subband of said pyramid hierarchy, thereby obtaining a losslessly encoded portion of said digital image; vector quantization (VQ) encoding all other subbands of said pyramid hierarchy, based on a zerotree insignificance prediction, thereby obtaining a lossy encoded portion of said digital image; outputting an encoded image from said losslessly encoded portion of said digital image and said lossy encoded portion of said digital image; transmitting said encoded image along a communications channel; obtaining said encoded image transmitted along said communications channel; reconstructing a zerotree from said encoded image; vector quantization decoding subbands in said encoded image other than a top LL subband; losslessly decoding said top LL subband; reverse wavelet transforming said top LL subband and said vector quantization decoded subbands; and outputting a decoded image from said decoded top LL subband and said decoded subbands other than said decoded top LL subband. 